package com.yueshop.common.to;

import lombok.Data;

import java.math.BigDecimal;
import java.util.List;

@Data
public class SkuEsModel {
    
    private Long skuId;

    private Long spuId;
	//标题
    private String skuTitle;
	//价格
    private BigDecimal skuPrice;
	//图片
    private String skuImg;
	//销量
    private Long saleCount;
	//库存
    private Boolean hasStock;
	//热度分
    private Long hotScore;
	//品牌id
    private Long brandId;
	//目录id
    private Long catalogId;
	//品牌名
    private String brandName;
	//品牌图片
    private String brandImg;
	//品牌名
    private String catalogName;
	
    private List<Attrs> attrs;

    @Data
    //为了第三方工具能对它序列化反序列化，设置为可访问的权限
    public static class Attrs {
        private Long attrId;
        private String attrName;
        private String attrValue;
    }
}